﻿using System;
using System.Web.Mvc;

namespace CodeContrib.Web.Mvc
{
	public class InternalServerErrorResult : HttpStatusCodeResult
	{
		public InternalServerErrorResult() : base(500)
		{
			ViewName = "InternalServerError";
		}

		public InternalServerErrorResult(Exception model) : base(500)
		{
			ViewName = "InternalServerError";
			ViewData = new ViewDataDictionary<Exception>(model);
		}
	}
}